package com.formation.tocea.library.client.ui.main;

import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class MainPanel extends VerticalPanel {
	private Widget activeWidget;
	
	public MainPanel() {
		init();
	}

	public void init() {
		setWidth("100%");
		//setActiveWidget(new BookTable());
		
		RootPanel.get("mainPanel").add(this);
	}

	public Widget getActiveWidget() {
		return activeWidget;
	}

	public void setActiveWidget(Widget activeWidget) {
		this.activeWidget = activeWidget;
		add(activeWidget);
	}
}
